#!/usr/bin/env python
# encoding: utf-8

print "cwfiglet"

# built-in stuff
import unittest
import os

# stuff to test
from cwfiglet import *

class CwFigletTest(unittest.TestCase):
	
	def testRun(self):
		expected = "".join([
			" _   _      _ _       \n",
			"| | | | ___| | | ___  \n",
			"| |_| |/ _ \ | |/ _ \ \n",
			"|  _  |  __/ | | (_) |\n",
			"|_| |_|\___|_|_|\___/ \n"
			"                      \n",
		])
		self.assertEqual(main({"context":{"selection":"Hello"}})[0][1],expected)

if __name__ == '__main__':
	unittest.main()


